home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Crack It!
/
Crack It!.iso
/
CONTENT
/
DISKEDIT
/
STRINGOF.ASM
< prev
next >
Wrap
Assembly Source File
|
1996-09-09
|
624b
|
30 lines
;***
;
;STRINGOF.ASM - a simple routine to return a string of n instances of
; a certain character
;
;(C)Copyright Gerard Paul Java 1996
;
;***
.MODEL TPASCAL
.CODE
PUBLIC StringOf
StringOf PROC FAR CharToRepeat: BYTE,Count: BYTE RETURNS DestString: DWORD
LES DI,DestString
MOV AL,Count
STOSB
MOV CL,Count
XOR CH,CH
MOV AL,CharToRepeat
REP STOSB
RET
StringOf ENDP
END